package com.bdqn.membersystem.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.bdqn.membersystem.pojo.UserRecharge;
import java.util.List;
import com.bdqn.membersystem.mapper.UserRechargeMapper;
import com.bdqn.membersystem.service.UserRechargeService;
/**
* 作者：姚岳城
* 日期：2020/4/3 16:53
*/

@Service
public class UserRechargeServiceImpl implements UserRechargeService{

    @Resource
    private UserRechargeMapper userRechargeMapper;

    @Override
    public int deleteByPrimaryKey(String rechargeId) {
        return userRechargeMapper.deleteByPrimaryKey(rechargeId);
    }

    @Override
    public int insertSelective(UserRecharge record) {
        return userRechargeMapper.insertSelective(record);
    }

    @Override
    public UserRecharge selectByPrimaryKey(String rechargeId) {
        return userRechargeMapper.selectByPrimaryKey(rechargeId);
    }

    @Override
    public int updateByPrimaryKeySelective(UserRecharge record) {
        return userRechargeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateBatch(List<UserRecharge> list) {
        return userRechargeMapper.updateBatch(list);
    }

    @Override
    public int batchInsert(List<UserRecharge> list) {
        return userRechargeMapper.batchInsert(list);
    }

    @Override
    public int insertOrUpdate(UserRecharge record) {
        return userRechargeMapper.insertOrUpdate(record);
    }

    @Override
    public int insertOrUpdateSelective(UserRecharge record) {
        return userRechargeMapper.insertOrUpdateSelective(record);
    }

}
